<?php /*a:2:{s:49:"D:\www\tp5\application\admin\view\other\tree.html";i:1536720086;s:43:"D:\www\tp5\application\admin\view\base.html";i:1530096033;}*/ ?>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>后台管理系统</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <link rel="stylesheet" href="/public/static/js/layui/css/layui.css" media="all">
    <link rel="stylesheet" href="/public/static/css/font-awesome.min.css">
    <!--CSS引用-->
    
    <link rel="stylesheet" href="/public/static/css/admin.css">
    <!--[if lt IE 9]>
    <script src="/public/static/css/html5shiv.min.js"></script>
    <script src="/public/static/css/respond.min.js"></script>
    <![endif]-->
</head>
<body>
<div class="layui-layout layui-layout-admin">
    <!--头部-->
    <div class="layui-header header">
        <span class="layui-header title"><?php echo htmlentities($site_config['site_title']); ?></span>
        <ul class="layui-nav" style="position: absolute;top: 0;right: 20px;background: none;">
            <!--<li class="layui-nav-item"><a href="" data-url="<?php echo url('admin/system/clear'); ?>" id="clear-cache">清除缓存</a></li>-->
            <li class="layui-nav-item">
                <a href="javascript:;"><?php echo cookie('admin_name'); ?></a>
                <dl class="layui-nav-child"> <!-- 二级菜单 -->
                    <dd><a href="<?php echo url('admin/change_password/index'); ?>">修改密码</a></dd>
                    <dd><a href="<?php echo url('admin/login/logout'); ?>">退出登录</a></dd>
                </dl>
            </li>
        </ul>
    </div>

    <!--侧边栏-->
    <div class="layui-side layui-bg-black">
        <div class="layui-side-scroll">
            <ul class="layui-nav layui-nav-tree">
                <li class="layui-nav-item layui-nav-title"><a>管理菜单</a></li>
                <li class="layui-nav-item">
                    <a href="<?php echo url('admin/index/index'); ?>"><i class="fa fa-home"></i> 网站信息</a>
                </li>
                <?php if(is_array($menu) || $menu instanceof \think\Collection || $menu instanceof \think\Paginator): if( count($menu)==0 ) : echo "" ;else: foreach($menu as $key=>$vo): if(isset($vo['children'])): ?>
                <li class="layui-nav-item">
                    <a href="javascript:;"><i class="<?php echo htmlentities($vo['icon']); ?>"></i> <?php echo htmlentities($vo['title']); ?></a>
                    <dl class="layui-nav-child">
                        <?php if(is_array($vo['children']) || $vo['children'] instanceof \think\Collection || $vo['children'] instanceof \think\Paginator): if( count($vo['children'])==0 ) : echo "" ;else: foreach($vo['children'] as $key=>$v): ?>
                        <dd><a href="<?php echo url($v['name']); ?>"> <?php echo htmlentities($v['title']); ?></a></dd>
                        <?php endforeach; endif; else: echo "" ;endif; ?>
                    </dl>
                </li>
                <?php else: ?>
                <li class="layui-nav-item">
                    <a href="<?php echo url($vo['name']); ?>"><i class="<?php echo htmlentities($vo['icon']); ?>"></i> <?php echo htmlentities($vo['title']); ?></a>
                </li>
                <?php endif; endforeach; endif; else: echo "" ;endif; ?>
            </ul>
        </div>
    </div>

    <!--主体-->
    
<div class="layui-body">
    <!--tab标签-->
    <div class="layui-tab layui-tab-brief">
        <ul class="layui-tab-title">
            <li class="layui-this">树级菜单</li>
        </ul>
        <div class="layui-tab-content">

            <style>
                .menutree {
                    width: 200%;
                    background: #fff;
                    height: auto;
                    overflow: hidden;
                }
                .menutree ul {
                    width: 100%;
                    height: auto;
                    overflow: hidden;
                }
                .menutree ul li.plevel {
                    background: none;
                }
                .menutree ul li {
                    position: relative;
                    box-sizing: border-box;
                    height: auto;
                    overflow: hidden;
                    line-height: 22px;
                    background: url("/public/static/images/L4.gif") repeat-y 0 0;
                    padding: 0px 0px 0px 14px;
                    text-indent: 22px;
                }
                .folder-open {
                    width: 16px;
                    height: 12px;
                    position: absolute;
                    left: 17px;
                    top: 5px;
                    background: url("/public/static/images/folder-open.gif") no-repeat 0 0;
                }
                .folder {
                    width: 16px;
                    height: 12px;
                    position: absolute;
                    left: 17px;
                    top: 5px;
                    background: url("/public/static/images/folder.gif") no-repeat 0 0;
                }
                .leve_1, .leve_2 {
                    width: 20px;
                    height: 20px;
                    display: block;
                    cursor: pointer;
                    position: absolute;
                    left: 0;
                    top: 2px;
                    background: url("/public/static/images/P2.gif") no-repeat 0 0;
                }
                .leve_2 {
                    background: url("/public/static/images/M2.gif") no-repeat 0 0;
                }
            </style>
            <div class="layui-tab-item layui-show">
                    <div class="menutree"><ul></ul></div>
            </div>
        </div>
    </div>
</div>


    <!--底部-->
    <div class="layui-footer footer">
        <div class="layui-main">
            <p>2018-2018 &copy; <a href="#" target="_blank">管理后台</a></p>
        </div>
    </div>
</div>

<script>
    // 定义全局JS变量
    var GV = {
        current_controller: "admin/<?php echo htmlentities((isset($controller) && ($controller !== '')?$controller:'')); ?>/",
        base_url: "/public/static"
    };
</script>
<!--JS引用-->
<script src="/public/static/js/jquery.min.js"></script>
<script src="/public/static/js/layui/lay/dest/layui.all.js"></script>
<script src="/public/static/js/admin.js"></script>

<script src="/public/static/js/city.js"></script>

<!--页面JS脚本-->

<script>
    var areaList = '<?php echo htmlentities($city); ?>';
    areaList=areaList.replace(/&quot;/g,'"');
    areaList=JSON.parse(areaList);
    cityIniti("<?php echo url('admin/other/ueditor','',''); ?>",1,parseInt(0),parseInt(0));


	var ue = UE.getEditor('default-template');
	ue.ready(function() {
		ue.setHeight(350);
		$('.reset').on('click',function(){
			ue.setContent('');
			$('textarea[name="body"]').html('');
		})
	});


</script>

</body>
</html>